On the Role of Trap Anharmonicity in the Dynamics of a One-Dimensional Bose Gas Suddenly Released from a Power-Law Trap into a Box Potential