removed PDim and PMap types

Hi all,

This is just a transparent change in terms of functionnality. I am doing this mostly because it will make easier my upcoming change that will separate autodiff in a self sufficient sub-module.

All tests pass.