- add 'dual' method to Ptr class
- fixed 'ByteArray class has no method "iterator"' bug