[MATLAB] corrected previous change for staticmembervariableHandler

previous update added lines for immutable constants, but they weren't
written as static methods.