rename prefix_length to prefix_len for consistency

Closes #2883