implement PVectorisable
implement PElementCount
fix functional operations
extra regression tests