Add tests for constructors

Closes #3
Add support for arrays

Closes #6
Added tests for generics

Closes #2