Separate function and column type environments

Without this change, there would be potential name clashes.