Add stClass as primitive data type, support for sub-query results