Prelude improvements

- Renamed modules for #213
- `Ref` FFI functions no longer use `values[0]`
- Moved the unsafe `head`/`tail` into a submodule for #207