Added quoting of GUID when formatted as literal and json

Added quotes when GUID is formatted as literal (') or Json ("). 

Added tests for both cases.