Added a preventPassByReference helper function to the date utils