Fix handling the 'maxrecords' key and the 'records' key of the related context
Merge pull request #102 from msyk/fix-maxrecords

Fix handling the 'maxrecords' key and the 'records' key of the related context