ByteArray refactor

Converted to use internal byte[] for storage
Converted to C# so unsafe code can be used
Fixed URLLoader/Texture to not do copies unnecessarily