fix test issues

well Complex and AbstractArray are both immutable, but
their concrete subtype can be either immutable or mutable.