Fix template for parameter types in callbacks

Support for multiple types (like 'Number or String') in callback
signatures. See for example signatures in documentation for jQuery.map.