fixed keys() implementation for #11 when using SVN < 1.7