DynamicArray is not a true JS array - it just simulates the [ ] operator and and length property (JSAPI doesn't support arrays derived from a JSClass which means it isn't possible to implement custom getter/setter callbacks).
A static array class should be implemented for true array support.