Use handleOptional for dictionary conversion.

This does not have any effect, as isOptional is always False for dictionaries.
This change is made only for consistency.
Use handleOptional for callback interface conversion.