Enable again dnn pool grad after fixed it.

@ynd can you review the change related to the pooling?
@abergeron can you review the change related to cdatatype?
I'm pretty sure this will break with PyCapsule (python 3 and maybe 2.7)