HTML-449: Updated velocity methods to accept string

https://issues.openmrs.org/browse/HTML-449

Changed definition of allEncounters() and latestEncounter to accept strings.