fix issue about amd being a string or an array
update tests to handlebars 2.0.0