median and medianad only make sense on real values, enforcing it in scalar definitions and removing test in type.complex. Fix #483