fix compiler crash
provide better error message for user errors like (non-C++) "complex[double]"