Fixed PData parsing issue

I fixed PData parsing issue which occurred when an empty <data/> element was read from the plist (modified test data with example).  Also modified rakefile to use  rubygems/package_task instead of rake/gempackagetask.