Parameter reader should work for structs as well as classes; fixes issue #199