Identify when a query has invalid include paramaters and return a more sensible error.
Bump version to 0.5.2
Merge branch 'hotfix-0.5.2'