Deprecated ToXContent.Params#paramAsBooleanOptional in favour of paramAsBoolean

Closes #4817