[WIP] cmath module support

This isn't finished yet, and depends on #782