Some fixes for T.js, started working on StorageEngine-typed.js