Fixed some C FFI bugs. Worked around a major Julia bug causing segfaults and
instability. Added rest of tests from documentation for Poly.jl.