Allow module variable to be function too, for component support.