add getSafe to functions; rename getColumnInfo to getReferenceInfo

Moves the null check logic from the AbstractDataAnalysis
into the Functions class as both getFunctionInfo and
getFunctionImplementation will probably be removed in the
upcoming relations change.

Renamed getColumnInfo to getReferenceInfo as it actually
returns a ReferenceInfo.