Add length conversion functions

- Add generator for creating simple ratio conversions
- Add configuration for length conversion functions