Made module type conversion for member variables recursive (so that tables of tensors are also converted).