Fixed bugs in amod and num handling in NPs.
Added delete_indices to transform.