Improve Duration function by normalizing the input object.
Created a new function (normalizeObjectUnits), this is now also used by dateFromObject

Fixed spacing or jshint

Fixed missing argument
Merge pull request #1116 from Xotic750/DurationNormalization

Improve Duration function by normalizing the input object.