Fixed error with print being overloaded, which caused the pattern type in the function signature to be overgeneralized.