Fix deepClone error in function check. Closes #63