Added different function type compilation + test.