do not remove external constants, fixes #1722

Here's a proof of concept on improving Reloader's handling of constants. Please say if it's disturbing or wrong. If it's okay, I will try to add tests.

This should fix #1722 and potentially other Reloader issues earlier marked as wontfix.