Replaced generic array with ClassInstance

https://github.com/kfgodel/diamond/issues/24
Workaround for generic Array to raw class was needed