Initial implementation of 'apply' and 'tile' for the SPLs plugin. See comments by searching for 'Paolo'