Merge pull request #5 from gzm0/typedSql

Add specialization to record implementation
Add nested test case