Rho.ORM.js: several fixes