Unused variable are validated across files in pack

Closes #438