fixed array ops (checking types before using)