Handle singleton pragmas
Add functional tests for singleton support
Merge pull request #7 from hasselmm/singleton-pragmas

Handle singleton pragmas