payment_type script::type() method can now detect input script types also.