Fixed not correctly converting sub objects to EJSON values