Added ability to lazy-load references of referenced app class programs when executing app class methods.