Use an array to encode/decode values
Fix the test to match the expected behavior
Update number of passing tests
putString and putLong are the same, just use a single function
Make init private
Fix indentation in midp/codec.js