Correct typo in debug statement and added code to handle a reply message that is just a simple type (e.g. a string) with no components.