BasePort: add 'function' to the list of valid data types

The 'function' type is used by noflo-core components like : 
https://github.com/noflo/noflo-core/blob/master/components/Callback.coffee#L17
https://github.com/noflo/noflo-core/blob/master/components/MakeFunction.coffee#L21