Fix getListByIds method. Now input order still. Also add some small fixes and improvements.