General bugfixery

This pull request addresses numerous issues in the client, primarily involved with the wrapping of C data types in Ruby forms.  Let me know what you think, and thanks for the consideration!