fix implicit scalar conversions (needed to support fancy scalar types, see bug #276)
8 files changed