Bugfix for contains, indexOf, lastIndexOf in PersistentList and testcase