server: unroll nested objects when querieng for the constant(anothe attempt to fix ruby 1.9 build)