Add missing nonlinearity to collision layer

- Now the responsibility is on the parent layer to apply nonlinearity to
  the feedback given by the child.
Try a lot of things related to collision layer
Fix two minor runtime errors