extend support dynamic parameter

closes #37
rebuild
fix except.throwException assert in test
support dynamic param for extend. Fixes #37