Fix master_ref

The `master` method already existed and the `master_ref` method is buggy (it doesn't return the _master_ ref but the ref named “master”, which is not necessarily the _master_ ref).

This change replaces `master_ref` by an alias of `master` (to allow to use this method)  and change the document accordingly.