Added StackArray to alloc array of value types in stack. Added tests.