This looks like a bug, but a fix should be quite easy. Can you create a JIRA issue and attach the entities there?
I am facing the same problem as I tried to integrate it with our application. Please let me know whether the bug been fixed.
Your best option is the to create/find an existing JIRA issue and watch it
Raised it in the Issue Tracker - HHH-4899. Hope it gets resolved soon.