Fixes Simplicity classes.

https://github.com/t11e/simplicity/issues/31

@shebiki Please review.