finish implementation of PDoubleArrayOutput
add DoubleArrayOutput-test