Fix some issues in lang-utils. Add some Ptr class cases to the unit test.