Add name field to functiondecl node.
Added support for merging entry_points.