Handle non-numeric fignums (for latest matlab version)