Correctly distinguish between functions and constants, support for 'use const'

So far 'use function' applied to both constants and functions. This
patch correctly separates the two, and resolves constants separately.

This also introduces a new 'use const' sequence for importing constants.