Fix pattern reference.
Expose append.
Implement getrange.
Expose setrange.