Fix class name detection in JSONDecoder
Fix limit variable in Query