While completing unittests changed various aspects of PelicanJson API.

Fixed various methods, including those that retrieve keys/values, and
find_and_replace.