Remove unneeded code

Don't bother adding redirection functions to the instantiation type
entry; they are only needed for adding the functions to the abstract
meta objects, which we are doing anyway, and are not needed by the
generate phase, so adding them to the type entry also is superfluous.

Change-Id: I81adc0a3e4d460e98c4a9849da6bbafe65f1ad61
Fix type resolution for type-template functions

Modify type resolution of function modifications to accept a mapping of
template arguments, in order to support e.g. '%INTYPE_0' as return
and/or argument types to functions. This is relevant to function
modifications declared on type templates.

An example of such is added to the sample binding, however there is no
test yet, as functions added to instantiations via type templates are
not being added correctly at the moment. (This will be fixed in the next
commit.)

Change-Id: I8875354547aae2d56d66b5697f1672287717c7b0
Fix type template function additions

Fix the code to add functions from type templates to instantiations to
also copy the code modifications. This fixes the functions being
generated with 'empty' bodies as explained in the previous commit.
Update the unit test to call these, now that they are useful.

Change-Id: I29527973e87cfe7aaf8b5769eb0aa7e7c36ba61f