Fixed cloning a modified duration

Storing the _input for creating a duration doesn't work for cloning when the
original duration is modified, because input no longer corresponds to the new
duration. Instead use the ms, days and month values which uniquely identify
a duration.

This also happens to fix #1242
Merge pull request #1243 from ichernev/bugfix/support-moment-add-duration

Fixed cloning a modified duration