Change triplet root label to something more appropriate. Also, fix the
algorithm for extractObject() and add a nice error message in case
extracting a triplet fails.