This patch slightly reworks the container objects internal objects allocation. This rework allows the same lifetime of the objects without the manual allocation/deallocation of the internal object. This patch also fixes #2951. Co-authored-by: Dániel Bátyai <[email protected]> JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]