Added convenience function that casts the loaded function to the right type
Some small fixes in the FreeTrack provider