fixed reference in ArrayList offsetGet
updated direct template resolvation to string