* [ref-struct]: add opt parameter to allow create packed struct * Set TypeScript version to 2.2 for package depending on ref-struct