Bugfixes for casting a constant to a string