Added generic get method to Namespace

This is to eliminate the need for explicit casting when retrieving arguments.

Also, updated the get* (i.e. getString) helper methods to use the new generic get.