Set default value to null for Input::only instead of being undefined.
Input keys being preserved to prevent reindexing.
Cleaning up some code.