Some cleanup - moving type checking functions to common Utilities.
Parameters now uses the common utilities.