align with handlebars 1.3. support both {{@index}} and {{@key}} when {{#each an_object}}