Refs #10301 Generalise row insertion

Sidestep the unit test issue by providing an internal row insertion
method that does not disturb the view. This method may also be useful in
future if we want to provide insertBefore/insertAfter actions.