Added unit tests for new StrongTyping functions.
Fixed bug found via unit tests.