Add optional defaults to array_only

This pull request allows for default values to be provided when using the array_only helper whenever the value is not set.