move PDL conversion code to own module
fix PDL type mapping
convert integers as well as floats