[MATLAB] Resolved name conflict in funcptr2 example
[MATLAB] Added 'template' example, resolved item access and assignment conflicts