add RFC103 layer encoding setter/getter to swig (#4758)