DPrecision.to_p performance optimization

Added a guard to the DPrecision.to_p method which checks if the date
argument is and PDate instance; if it is and its date_precision property
equals the requested target precision, then the argument is returned
unchanged.