Removed store reference to GL object and eliminated potential NPE.
Various type refinements for Profile wrapper.
Resolved issue with implicit value classes.