Don't trigger a Module or Package class load if it's not needed. closes #1750