Fixed #154 and other constant-related bugs. Also: removed the "feature" of regex literals being automatically assigned to a constant to avoid multiple recompilations of the same regex (users must be able to choose that to)