isSimpleValue check in buildURL() for struct serialization

This pull request solves issue #160.