Date object toString using toUTCString, refactor duplicate code for ParameterNode, added a set of toString tests

Date object parameters should be toStringed using toUTCString because databases won't understand the standard toString format but will understand UTC format.

Multiple places had similar parameter node wrapping code, refactored to use a single function ParameterNode.getNodeOrParameterNode