Deprecated ToXContent.Params#paramAsBooleanOptional in favour of paramAsBoolean

Deprecated ToXContent.Params#paramAsBooleanOptional in favour of paramAsBoolean

Closes #4817