Accept more kinds of implicit multiplication

Allow things like "pi(2)" to be parsed as "pi * 2", instead of an
unknown function "pi". Also allow things like "(2)(2)".