Some more static on functions Also added convenience functions to check if an svalue is a reference type.