[SPARK-2549] Functions defined inside of other functions trigger failures

Can this be called `getInnerFunctions` since it enumerates multiple inner functions?