Japan economy shrinks for 1st time since 2009 but tops forecast