Fix bugs in LAL unit conversion
This PR fixes #1478 (closed) by implementing changes proposed by @jolien-creighton to improve the LAL to/from unit conversions.
This has required an API change in the gwpy.utils.lal.to_lal_unit
function, but I believe this to be sparingly used out of GWpy, so shouldn't be heavily disruptive.